<ul nz-menu [nzMode]="'inline'">
    <li nz-submenu nzOpen>
        <span title><i nz-icon nzType="appstore"></i>{{groupName}}数据组</span>
        <ul *ngIf="groups.length > 0">
            <li *ngFor="let item of groups; let i = index" nz-menu-item (click)="showDetail(item)"
                [nzSelected]="i <= 0">
                <i nz-icon nzType="bars" theme="outline" *ngIf="item.mode == 1"></i>
                <i nz-icon nzType="cluster" theme="outline" *ngIf="item.mode == 2"></i>
                <i nz-icon nzType="setting" theme="outline" *ngIf="item.mode == 3"></i>{{ item.name }}
            </li>
        </ul>
        <ul *ngIf="groups.length == 0">
            <li nz-menu-item style="text-align: center; width: 100%; ">
                <span style="color:gray;">
                    没有定义数据字典
                </span>
            </li>
        </ul>
    </li>
</ul>